package org.PISS.controller.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * Created by admin on 12.04.14.
 */
@Entity
@Table(name = "PRODUCT_TYPE")
public class ProductType {

    public ProductType(){
        super();
    }

    public ProductType(long tipeID, String name, String description){
        this.typeID=tipeID;
        this.name=name;
        this.description=description;
    }


    @Id
    @Column(name = "TYPE_ID")
    @GenericGenerator(name="generator", strategy="increment")
    @GeneratedValue(generator="generator")
    private long typeID;

    @Column
    private String name;

    @Column
    private String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getTypeID() {
        return typeID;
    }

    public void setTypeID(long productID) {
        this.typeID = productID;
    }
}
